package org.hawk.gwtppc.webtest.tests.classsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.AnnotationMock;
import org.hawk.gwtppc.webtest.tests.mock.ClassMock;
import org.hawk.gwtppc.webtest.tests.mock.EnumMock;
import org.hawk.gwtppc.webtest.tests.mock.InterfaceMock;

public class GetEnumConstantsTest implements Test {

	public void run() throws Throwable {
		EnumMock[] values = EnumMock.class.getEnumConstants();
		Asserts.assertEquals(values[0], EnumMock.ALPHA);
		Asserts.assertEquals(values[1], EnumMock.BETA);
		Asserts.assertEquals(values[2], EnumMock.GAMA);
		Asserts.assertEquals(values[3], EnumMock.DELTA);
		
		Asserts.assertTrue(InterfaceMock.class.getEnumConstants() == null);
		Asserts.assertTrue(AnnotationMock.class.getEnumConstants() == null);
		Asserts.assertTrue(ClassMock.class.getEnumConstants() == null);
	}

	public String getName() {
		return "getEnumConstants()";
	}

}
